package com.hmz.backend.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("user")
public class User {
    @TableId(value="user_id", type= IdType.AUTO) //value 值为数据库中主键名
    private Integer userId;
    @TableField(value = "user_name")
    private String userName;
    private String password;
    private String avatar;
    @TableField(value = "user_type")
    private int userType;
//    private int friendCount; //好友数量
//    private int groupChatCount; //群聊数量
//    private boolean banStatus; //是否被禁用
}
